setContentFillHorizontalAlignment

Set the horizontal alignment of the content fill inside the block.

Only affects ContentFillMode.CONTAIN and ContentFillMode.COVER; has no visible effect in ContentFillMode.CROP, where the user positions the content explicitly. Required scope: "layer/crop"

Parameters

block

the block to update.

alignment

the horizontal alignment.